package com.zayats.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.zayats.model.Shoplist;

public class ShoplistsRowMapper implements RowMapper {
	public Object mapRow(ResultSet result, int arg1) throws SQLException {

		Shoplist temp = new Shoplist();
		temp.setShoplistId(result.getInt("shoplist_id"));
		temp.setName(result.getString("name"));
		temp.setFamilyId(result.getInt("family_id"));
		return temp;
	}

}
